lib: move list sorting code
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:20:42 +0000 (13:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Dec 2020 12:20:42 +0000 (13:20 +0100)
commit26dfde919cac720c29d076bc8fd38ad0af1b2abb
treeca7f714e2d2ef980ee7427bf9791bdb10002db5e
parentf301f9a9e84f3cfd18750065f8a3794c8182c7f0
lib: move list sorting code

Build the source file always, as by putting it into an archive it still
won't be linked into final binaries when not needed. This way possible
build breakage will be easier to notice, and it's more consistent with
us unconditionally building other library kind of code (e.g. sort() or
bsearch()).

While moving the source file, take the opportunity and drop the
pointless EXPORT_SYMBOL() and an unnecessary #include.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Kconfig
xen/common/Kconfig
xen/common/Makefile
xen/common/list_sort.c [deleted file]
xen/lib/Makefile
xen/lib/list-sort.c [new file with mode: 0644]